/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.Arrays;
import java.util.Random;

/**
 * <p>Project: javase2203 - C2
 * <p>Powered by webrx On 2022-07-19 09:35:15
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class C2 {
    public static void main(String[] args) {
        C2 c = new C2();
        c.show();

        int p = c.pf(1);
        System.out.println(p);
        System.out.println(c.pf(19));

        System.out.println(Arrays.toString((int[])c.getC()));
    }

    public Object getC(){
        int[] tt = {1,2,3};
        return tt;
    }


    public int[] getNum(){
        int[] nums = new int[10];
        Random rand = new Random();
        for(int i=0;i<nums.length;i++){
            nums[i] = rand.nextInt(1,101);
        }
        return nums;
    }

    public int pf(int a){
        int y = a;
        int s = y*y;
        return s;
    }

    public void show(){
        Random rand = new Random();
        System.out.println("show()方法调用");
        if(rand.nextBoolean()){
            return;
        }
        System.out.println("show()方法结束");
    }
}
